import request from '@/utils/request'
export default{
    list(){ 
        return request({
            url:`/admin/core/lend`,
            method:'GET'
        })
    },
    getById(id){ 
        return request({
            url:`/admin/core/lend/${id}`,
            method:'GET'
        })
    },
    makeLoan(id){ 
        return request({
            url:`/admin/core/lend/makeLoan/${id}`,
            method:'PUT'
        })
    }
}